package com.study.app.domain.bo;

import com.study.common.core.domain.BaseEntity;
import com.study.common.core.validate.AddGroup;
import com.study.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * FAO Info业务对象 faq
 *
 * @author study
 * @date 2023-10-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FaqBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 语言简称
     */
    @NotBlank(message = "语言简称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String langType;

    /**
     * FAQ类型(0:无分类,1:注册与帐号,2:设备,3:车辆,4:告警,5:操作)
     */
    @NotNull(message = "FAQ类型(0:无分类,1:注册与帐号,2:设备,3:车辆,4:告警,5:操作)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer faqType;

    /**
     * 标题首字母
     */
    private String titleInitials;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 副标题
     */
    @NotBlank(message = "副标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subtitle;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String context;

    /**
     * 是否有超链接(0:否,1:是)
     */
    @NotNull(message = "是否有超链接(0:否,1:是)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isPath;

    /**
     * 超链接地址
     */
    private String toPath;

    /**
     * 缩略图地址
     */
    private String imgPath;


}
